#include <iostream>
using namespace std;


int main(){
//	while(true){
//		cout<<endl<<endl;
	int n;
	cin>>n;
	int sum=0;
	int index=0;
	while(sum < n){
		index++;
		sum += index;
	}
	sum -= index;
	cout<<index-(n-sum)+1<<"/"<<n-sum;
//	cout<<endl<<sum<<" "<<index;
//	}
	return 0;
}
